import React from 'react'
import { useLocation } from 'react-router-dom'
import qs from 'qs'
export default function News() {
    const location = useLocation()
    const Msg = qs.parse(location.search.split('?')[1])
  return (
    <div>
        演唱者：{Msg.name}
        <br />
        编号：{Msg.id}
    </div>
  )
}
